package com.zc.utils;

import jakarta.servlet.http.HttpServletResponse;

/**
 * @description:
 * @author: cong
 * @create: 2024/8/1
 */
public class WebUtil {
    public static void renderString(HttpServletResponse response, String content) {
        response.setStatus(200);
        response.setContentType("application/json");
        response.setCharacterEncoding("utf-8");
        try {
            response.getWriter().print(content);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
